package com.xiaoshuidi.cloud.module.finance.controller.admin.finance.vo.account;

import com.xiaoshuidi.cloud.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.xiaoshuidi.cloud.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 账户分页 Request VO")
@Data
public class FinanceAccountPageReqVO extends PageParam {
    @Schema(description = "会员id/企业id")
    private String custId;
    @Schema(description = "账户类型INDIVIDUAL个人/COMPANY企业/ROOM房屋")
    private String custType;
    @Schema(description = "名称")
    private String name;

    // 房屋账户查询条件
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @Schema(description = "创建时间")
    private LocalDateTime[] createTime;
    @Schema(description = "门店id")
    private Long apartmentId;
    @Schema(description = "房间名称")
    private String roomName;
    @Schema(description = "企业名称")
    private String companyName;
    @Schema(description = "手机号")
    private String mobile;
}
